import viteBaseConfig from './vite.base.config.js'
import viteDevConfig from './src/config/vite.dev.js'
import viteBuildConfig from './src/config/vite.build.js'
import {defineConfig} from "vite";


export default defineConfig(({mode}) => {
    if (mode === "dev") {
        return {
            ...viteBaseConfig,
            ...viteDevConfig,
        };
    } else {
        return {
            ...viteBaseConfig,
            ...viteBuildConfig,
        };
    }
});